package com.example.demo.service;

import com.example.demo.bean.Order;
import com.example.demo.bean.User;
import com.example.demo.bean.view.OrderView;
import com.example.demo.bean.view.OrderViewTest;

import java.util.List;

public interface OrderService{
    public boolean insertOrder(Order order);


    public boolean deleteOrderForAdmin(Order order);//管理员使用的删除功能

    public boolean deleteOrderForUser(Order preOrder, Order laOrder);//用户使用的删除功能

    public boolean updateOrder(Order preOrder, Order laOrder);

    public List<Order> findAllOrder();

    public List<OrderView> findOrderByBuyerNum(User buyer);

    public List<OrderView> findOrderBySellerNum(User seller);

    public OrderView findOrderByOrderNum(Order order);

    public List<OrderView> findAllOrderView();
}

